home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_ambgemc2.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  88 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_AmbGemC2.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message        entered
  14.     message     pulse
  15.  
  16.     thing        soundPos0        nolink
  17.     thing        soundPos1        nolink
  18.     thing        soundPos2        nolink
  19.     thing        soundPos3        nolink
  20.     
  21.     sector      on_sec1         linkID=1
  22.     
  23.     sector      off_sec1        linkID=0
  24.  
  25.     sound        enhanced0=sol_ambient01_a.wav   local
  26.     sound        enhanced1=sol_ambient02_a.wav   local
  27.     sound        enhanced2=sol_ambient03_a.wav   local
  28.     sound        enhanced3=sol_ambient04_a.wav   local
  29.     sound        enhanced4=sol_ambient05_a.wav   local
  30.     sound        enhanced5=nub_ambient4_a.wav    local
  31.     
  32.     sound       basic0=nub_ambient1_a.wav   local
  33.     sound       basic1=nub_ambient2_a.wav   local
  34.     sound       basic2=nub_ambient3_a.wav   local
  35.     
  36.     int            sndNum            local
  37.     int            numPos=4        local
  38.     int            count           local
  39.  
  40. end
  41.  
  42. # ========================================================================================
  43.  
  44. code
  45.  
  46. startup:
  47.  
  48.     global4 = 0;
  49.     return;
  50.  
  51. # ========================================================================================
  52.  
  53. entered:
  54.  
  55.     if(GetSenderID() == 1)
  56.     {
  57.         setpulse(2.0);
  58.     }
  59.     
  60.     if(GetSenderID() == 0)
  61.     {
  62.         SetPulse(0.0);
  63.     }
  64.     
  65.     return;
  66.  
  67. # ========================================================================================
  68.  
  69. pulse:
  70.  
  71.     # no commies yet
  72.     if(global4 == 0)
  73.     {
  74.         PlaySoundThing(basic0[RandBetween(0, 2)], soundPos0[RandBetween(0, 3)], 1.0, -1, -1, 0);
  75.     }
  76.     
  77.     # commies are driving around
  78.     else if(global4 == 1)
  79.     {
  80.         PlaySoundThing(enhanced0[RandBetween(0, 5)], soundPos0[RandBetween(0, 3)], 1.0, -1, -1, 0);
  81.     }
  82.     
  83.     return;
  84.  
  85. # ========================================================================================
  86.  
  87. end
  88.